package Typage;

import Error.TypeError;
import Semantique.Visitor;

public class Var {
	public Ident var_id;

	public int offset;
	
	public Type var_ty;

	public Var(Ident var_id_init, Type var_ty_init) {
		this.var_id = var_id_init;
		this.var_ty = var_ty_init;
	}

	public void accept(Visitor v) throws TypeError {
		v.visit(this);
	}
}